package com.formulas.certification.oauth.extension;

import com.formulas.certification.CertificationConstants;
import com.formulas.certification.domain.oauth.model.OauthClientDetailsEntity;
import com.formulas.certification.dto.data.OauthClientDetailsDTO;
import com.formulas.certification.oauth.convertor.OauthClientDetailsConvertor;
import com.formulas.certification.oauth.extensionpoint.OauthClientDetailsConvertorExtPt;
import com.formulas.component.extension.Extension;

/**
 * @author yiwannuofulasi
 * @date 2023/6/13 12:27
 */
@Extension(bizId = CertificationConstants.BIZ_1)
public class OauthClientDetailsConvertorExt implements OauthClientDetailsConvertorExtPt {

    @Override
    public OauthClientDetailsEntity clientToEntity(OauthClientDetailsDTO oauthClientDetailsDTO) {
        return OauthClientDetailsConvertor.INSTANCE.toOauthClientDetailsEntity(oauthClientDetailsDTO);
    }
}
